﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Main.Master" AutoEventWireup="true" CodeBehind="BiddingRecordPage.aspx.cs" Inherits="ArtClub.View.BiddingRecordPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainMenu" runat="server">
    <li><a href="BrowseCatalogue.aspx">Art Pieces</a>
    </li>
    <li><a href="BiddingInfoPage.aspx">Pieces for Bidding</a>
    </li>
    <li><a href="ChangeSystemDatePage.aspx">Subscription</a>
    </li>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageName" runat="server">
     Bidding Record
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Submenu" runat="server">
    <a href="BiddingInfoPage.aspx" class="list-group-item">Available Bidding Pieces</a>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
    <table class="table table-hover">


            <asp:Repeater ID="repRecord" runat="server">
                <HeaderTemplate>
                    <tr class="row">
                        <td>
                            <div class="col-xs-6 col-md-2">Image</div>
                        </td>
                        <td>
                            <div class="col-xs-6 col-md-2">Piece</div>
                        </td>
                        <td>
                            <div class="col-xs-6 col-md-2">Artist</div>
                        </td>
                        <td>
                            <div class="col-xs-6 col-md-2">Highest Bid(kr)</div>
                        </td>
                       <td>
                            <div class="col-xs-6 col-md-2">Owner</div>
                        </td>
                        
                    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr class="row">
                        <td>
                            <a href="BiddingPage.aspx?id=<%#Eval("id")%>"><img src="<%#Eval("Piece.image") %>" /></a>
                            
                        </td>
                        <td>
                            <div class="col-xs-6 col-md-4">
                                <%#Eval("Piece.name")%>
                                
                            </div>
                        </td>
                        <td>
                            <div class="col-xs-6 col-md-4">
                                <%#Eval("Piece.artist")%>
                                
                            </div>
                        </td>
                        <td>
                            <div class="col-xs-6 col-md-2" ><%#Eval("highestBid")%></div>

                        </td>
                        <td>
                            <div class="col-xs-6 col-md-2"><%#Eval("Member.name")%></div>


                        </td>
                       
                    </tr>
                </ItemTemplate>
            </asp:Repeater>

        </table>
</asp:Content>
